package com.yinshu.teleshield.utils;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yinshu.teleshield.tkbase.base.PageResult;

public final class PageResultUtils {
    public static PageResult toPageResult(IPage<?> page) {
        return new PageResult<>(page.getCurrent(), page.getSize(), page.getRecords(), page.getTotal());
    }
}